	/* 分页提交表单 
		currentPageId:currentPage文本框的id
		currentPage:当前页的值
		pageSizeId:pageSize文本框的id
		pageSize:每页多少条的值
	*/
	function pageForm(currentPageId,currentPage,pageSizeId,pageSize)
	{
		/* 获取当前页和每页多少条文本框的值 */
		/* $("#currentPage").val() */
		/* 修改这个值 */
		/* $("#currentPage").val(23); */
		$("#" + currentPageId).val(currentPage);
		$("#" + pageSizeId).val(pageSize);
		
		/* jquery提交表单 */
		$("#usersListPageForm").submit();
		
		/*
		 * 标签的默认行为:如果返回true就执行,如果返回false就不执行 a链接 默认行为是打开href里面的内容,a链接的默认行为就不执行
		 */
		return false ; 
	}
	function checkEmail() {
		/* 获取属性对象 校验邮箱 */
		var email = $("#email");
		// 获取span对象
		var span = $("#emailSpan");
		// 创建正则表达式
		var reg = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;
		// 开始校验
		if (email == "" || email == null) {
			span.innerHTML = "*邮箱不能为空"
			span.style.color = "red";
		} else if (reg.test(email)) {
			span.innerHTML = "邮箱正确";
			span.style.color = "green";
		} else {
			span.innerHTML = "*邮箱格式不正确"
			span.style.color = "red";
		}
	}
	
	function checkpassword() {
		// 获取邮箱密码对象
		var password = $("#password");
		// 获取span对象
		var span = $("#passwordSpan");
		// 创建正则表达式
		var reg = /^[0-9a-zA-Z_#]{6,16}$/;
		// 开始校验
		if (password == "" || password == null) {
			span.innerHTML = "*密码不能为空"
			span.style.color = "red";
		} else {
			span.innerHTML = "*密码格式不正确"
			span.style.color = "red";
		}
	}
	
	function checkAddress() {
		// 获取地址对象
		var address = $("#address");
		// 获取span对象
		var span = $("#addressSpan");
		// 开始校验
		if (address == "" || address == null) {
			span.innerHTML = "*地址不能为空";
			span.style.color = "red";
		}
	}
	
	function checkSex() {
		// 获取性别对象
		var sex = $("#sex");
		// 获取span对象
		var span = $("#sexSpan");
		// 开始校验
		if (sex == 0) {
			span.innerHTML = "*性别不能为请选择";
			span.style.color = "red";
			return false;
		} else {
			span.innerHTML = "*性别ok";
			span.style.color = "green";
			return true;
		}
	}
	
	function checkName() {
		// 获取姓名对象
		var name = $("#name");
		// 获取span对象
		var span = $("#nameSpan");
		// 创建正则表达式
		var reg = /^[\u4e00-\u9fa5]{2,4}$/;
		// 开始校验
		// 开始校验
		if (name == "" || name == null) {
			span.innerHTML = "*用户名不能为空"
			span.style.color = "red";
		} else if (reg.test(name)) {
			span.innerHTML = "用户名正确";
			span.style.color = "green";
		} else {
			span.innerHTML = "*用户名格式不正确"
			span.style.color = "red";
		}
	}
	
	function checkIdentity() {
		// 获取身份证对象
		var identity = $("#identity");
		// 获取span对象
		var span = $("#identitySpan");
		// 创建正则表达式
		var reg = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
		// 开始校验
		if (identity == "" || identity == null) {
			span.innerHTML = "*身份证号码不能为空";
			span.style.color = "red";
		} else if (reg.test(identity)) {
			span.innerHTML = "*身份证号码正确";
			span.style.color = "green";
		} else {
			span.innerHTML = "*身份证号码格式错误";
			span.style.color = "red";
		}
	}
	function checkPhone(){
		// 获取手机号对象
		var phone=$("#phone");
		// 获取span对象
		var span=$("#phoneSpan");
		// 创建正则表达式
		var reg=/^1[345678]\d{9}$/;
		// 开始校验
		if(phone=="" || phone==null){
			span.innerHTML = "*手机号码不能为空";
			span.style.color = "red";
		}else if(reg.test(phone)){
			span.innerHTML = "*手机号码正确";
			span.style.color = "green";
		}else{
			span.innerHTML = "*手机号码格式错误";
			span.style.color = "red";
		}
	}

	
	
	
